Passed
Branch master (b8a2ae)
by Samson
02:23
created

NotAnIntegerArgumentException.js ➔ constructor   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 2
nc 1
nop 1
dl 0
loc 3
rs 10
c 1
b 0
f 0
1
/**
2
 * Class NotAnIntegerArgumentException.
3
 *
4
 * @author Sam As End <4sam21{at}gmail.com>
5
 */
6
module.exports = class NotAnIntegerArgumentException extends Error {
0 ignored issues
show
Bug introduced by
The variable Error seems to be never initialized.
Loading history...
7
    constructor($argument) {
8
        super(`Not an integer!, ${typeof $argument} given.`);
9
    }
10
};
11